package com.itzz.spring_zhoneHeng.service;

import com.itzz.spring_zhoneHeng.base.RestResponse;
import com.itzz.spring_zhoneHeng.pojo.Role;
import org.springframework.transaction.annotation.Transactional;

import java.util.HashMap;

public interface RoleService {
    RestResponse queryAll(HashMap<String, Object> map);

    //修改
    @Transactional
    RestResponse edit(Role role, Integer[] ids);

    @Transactional
    RestResponse add(Role role, Integer[] ids);

    //根据id删除角色
    @Transactional
    RestResponse del(Integer id);
}
